package com.jic.product.mapper;

import com.jic.product.entity.CategoryTreeNodeRelation;
import com.jic.product.manage.response.CategoryTreeNodeRelationResponse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 类目节点聚合表
 * @author : 
 * @email : 
 * @since : 2020-01-10 07:03:01
 * @version : v1.0.0
 */
@Mapper
public interface  CategoryTreeNodeRelationMapper {

    long insert(CategoryTreeNodeRelation categoryTreeNodeRelation);

    long delete(Long id);

    long update(CategoryTreeNodeRelation categoryTreeNodeRelation);

    CategoryTreeNodeRelation queryByPrimaryKey(Long id);

    List<CategoryTreeNodeRelationResponse> query(CategoryTreeNodeRelation categoryTreeNodeRelation);

    List<CategoryTreeNodeRelationResponse> queryByLeftTreeNodeId(Long leftTreeNodeId);

    List<Long> queryByRestLeftTreeNodeId(Long leftTreeNodeId);

    List<CategoryTreeNodeRelationResponse> queryList(CategoryTreeNodeRelation categoryTreeNodeRelation);

    List<String> queryLeftIdByRightId(@Param("ids") List<Long> ids);


}